package net.siufung.boot.knife4j.properties;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @ClassName: Knife4jProperties
 * @author SIUFUNG
 */
@Data
@ApiModel("Knife4j配置实体")
@ConfigurationProperties(prefix = Knife4jProperties.PREFIX)
@ConditionalOnProperty(prefix = Knife4jProperties.PREFIX,
        name = {"enable"}, havingValue = "true", matchIfMissing = true)
public class Knife4jProperties {

    public static final String PREFIX = "siufung.knife4j";

    @ApiModelProperty("是否启用")
    private boolean enable = false;
    @ApiModelProperty("标题")
    private String title="Knife4j Api Doc";
    @ApiModelProperty("描述")
    private String description="";
    @ApiModelProperty("服务链接")
    private String termsOfServiceUrl="http://doc.siufung.net";
    @ApiModelProperty("联系人")
    private String contact="陈建峰";
    @ApiModelProperty("联系人邮箱")
    private String email="qd_chenjianfeng@163.com";
    @ApiModelProperty("版本号")
    private String version="2.0.0";
    @ApiModelProperty("测试的Host")
    private String host="";
    @ApiModelProperty("扫描包")
    private String basePackage;


}
